/*
* @Author: name
* @Date:   2019-08-08 11:25:49
* @Last Modified by:   name
* @Last Modified time: 2019-08-11 14:02:57
*/

'use strict';
import VueRouter from "vue-router";
import HomeContainer from "./components/tabbars/home.vue";
import MemberContainer from "./components/tabbars/member.vue";
import SearchContainer from "./components/tabbars/search.vue";
import ShopCarContainer from "./components/tabbars/shop.vue";
import NewsList from "./components/nwes/NewsList.vue";
import NewsInfo from "./components/nwes/NewsInfo.vue";
import PhotoList from "./components/photos/PhotoList.vue";
import PhotoInfo from "./components/photos/PhotoInfo.vue";
import GoodsList from "./components/goods/GoodsList.vue";
import GoodsInfo from "./components/goods/GoodsInfo.vue";
import GoodsDesc from "./components/goods/GoodsDesc.vue";
import GoodsCmt from "./components/goods/GoodsCmt.vue";
var router=new VueRouter({
    routes:[
    {path:"/",redirect:"/home"},
    {path:"/home",component:HomeContainer},
    {path:"/member",component:MemberContainer},
    {path:"/search",component:SearchContainer},
    {path:"/shop",component:ShopCarContainer},
    {path:"/home/newslist",component:NewsList},
    {path:"/home/newsInfo/:id",component:NewsInfo},
    {path:"/home/photolist",component:PhotoList},
    {path:"/home/photoInfo/:id",component:PhotoInfo},
    {path:"/home/goodslist",component:GoodsList},
    {path:"/home/goodsInfo/:id",component:GoodsInfo},
    {path:"/home/goodsDesc/:id",component:GoodsDesc},
    {path:"/home/goodsCmt/:id",component:GoodsCmt},
    ],
    linkActiveClass:"mui-active"
});
export default router;